class UserInfo {
  String? pageNum;
  String? pageSize;
  String? id;
  String? nickname;
  String? avatar;
  String? userName;
  String? phone;
  int? sex;
  String? password;
  List<dynamic>? roles;
  List<dynamic>? perms;

  UserInfo({
    this.pageNum,
    this.pageSize,
    this.id,
    this.nickname,
    this.avatar,
    this.userName,
    this.phone,
    this.password,
    this.roles,
    this.perms,
  });

  factory UserInfo.fromJson(Map<String, dynamic> json) => UserInfo(
        pageNum: json['pageNum'] as String?,
        pageSize: json['pageSize'] as String?,
        id: json['id'] as String?,
        nickname: json['nickname'] as String?,
        avatar: json['avatar'] as String?,
        userName: json['userName'] as String?,
        phone: json['phone'] as String?,
        password: json['password'] as String?,
        roles: json['roles'] as List<dynamic>?,
        perms: json['perms'] as List<dynamic>?,
      );

  Map<String, dynamic> toJson() => {
        'pageNum': pageNum,
        'pageSize': pageSize,
        'id': id,
        'nickname': nickname,
        'avatar': avatar,
        'userName': userName,
        'password': password,
        'phone': phone,
        'roles': roles,
        'perms': perms,
      };
}
